import { IFeidaoAiBrowserComponent } from "@feidao/web/interfaces";
import local_get from '@feidao/web/atom/browser/local/get';
import local_set from '@feidao/web/atom/browser/local/set';

export default async function a004(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const nodes = local_get<any[]>(fd, 'select_node');
	if (nodes && nodes.length > 0) {
		const first_node = nodes[0];
		first_node.click();
		// 删除数组第一个
		nodes.shift();
		local_set(fd, 'select_node', nodes);
	}
}